<div class="page-body">
    <div class="row">
        <div class="widget">
            <div class="widget-body">
                <div id="horizontal-form">
                    <form class="form-horizontal" role="form"
                          action="{:U('replaceBook')}"
                          method="post" enctype="multipart/form-data">
                        <input type="hidden" name="bag_book_id" value="{$book['id']}" />
                        <input type="hidden" name="old_book_id" value="{$book['book_id']}" />
                        <input type="hidden" name="bag_id" value="{$bag_id}" />
                        <div class="form-group">
                            <label for="sm" class="col-sm-3 control-label no-padding-right">原书名：</label>
                            <div class="col-sm-3">
                                <input type="text" class="form-control" id="sm" name="sm" value="{$book['sm']}" readonly required>
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="tm" class="col-sm-3 control-label no-padding-right">原书条码：</label>
                            <div class="col-sm-3">
                                <input type="text" class="form-control" id="tm" name="oldTm" value="{$book['tm']}" readonly required>
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="new-tm" class="col-sm-3 control-label no-padding-right">新书条码：</label>
                            <div class="col-sm-3">
                                <input type="text" class="form-control" id="new-tm" name="tm"  placeholder="请输入新书条码..." required>
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="remark" class="col-sm-3 control-label no-padding-right">备注：</label>
                            <div class="col-sm-3">
                                <input type="text" class="form-control" id="remark" name="remark"  placeholder="请输入备注..." required>
                            </div>
                        </div>

                        <div class="form-group bottom-div">
                            <div class="col-sm-offset-3 col-sm-10">
                                <button type="submit" class="btn btn-primary">提 交</button>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>
<script type="text/javascript">

</script>